package com.inspur.xiaoju.service;

import java.util.Map;

public interface CaptchaService {
    /*
     * 生产并保存验证码到mongodb
     */
    Map<String, String> generateAndSaveCaptcha(String captchaId);

    /*
     * 校验验证码是否正确
     */
    boolean validateCaptcha(String id, String captcha);
} 
